﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020006C7 RID: 1735
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetFarmStageGachaInfoScRsp : IMessage<GetFarmStageGachaInfoScRsp>, IMessage, IEquatable<GetFarmStageGachaInfoScRsp>, IDeepCloneable<GetFarmStageGachaInfoScRsp>, IBufferMessage
	{
		// Token: 0x17001651 RID: 5713
		// (get) Token: 0x06004E30 RID: 20016 RVA: 0x000D5787 File Offset: 0x000D3987
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetFarmStageGachaInfoScRsp> Parser
		{
			get
			{
				return GetFarmStageGachaInfoScRsp._parser;
			}
		}

		// Token: 0x17001652 RID: 5714
		// (get) Token: 0x06004E31 RID: 20017 RVA: 0x000D578E File Offset: 0x000D398E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetFarmStageGachaInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001653 RID: 5715
		// (get) Token: 0x06004E32 RID: 20018 RVA: 0x000D57A0 File Offset: 0x000D39A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetFarmStageGachaInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06004E33 RID: 20019 RVA: 0x000D57A7 File Offset: 0x000D39A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFarmStageGachaInfoScRsp()
		{
		}

		// Token: 0x06004E34 RID: 20020 RVA: 0x000D57BA File Offset: 0x000D39BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFarmStageGachaInfoScRsp(GetFarmStageGachaInfoScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.farmStageGachaInfoList_ = other.farmStageGachaInfoList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004E35 RID: 20021 RVA: 0x000D57F0 File Offset: 0x000D39F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFarmStageGachaInfoScRsp Clone()
		{
			return new GetFarmStageGachaInfoScRsp(this);
		}

		// Token: 0x17001654 RID: 5716
		// (get) Token: 0x06004E36 RID: 20022 RVA: 0x000D57F8 File Offset: 0x000D39F8
		// (set) Token: 0x06004E37 RID: 20023 RVA: 0x000D5800 File Offset: 0x000D3A00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001655 RID: 5717
		// (get) Token: 0x06004E38 RID: 20024 RVA: 0x000D5809 File Offset: 0x000D3A09
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<FarmStageGachaInfo> FarmStageGachaInfoList
		{
			get
			{
				return this.farmStageGachaInfoList_;
			}
		}

		// Token: 0x06004E39 RID: 20025 RVA: 0x000D5811 File Offset: 0x000D3A11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetFarmStageGachaInfoScRsp);
		}

		// Token: 0x06004E3A RID: 20026 RVA: 0x000D5820 File Offset: 0x000D3A20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetFarmStageGachaInfoScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.farmStageGachaInfoList_.Equals(other.farmStageGachaInfoList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004E3B RID: 20027 RVA: 0x000D5870 File Offset: 0x000D3A70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.farmStageGachaInfoList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004E3C RID: 20028 RVA: 0x000D58BD File Offset: 0x000D3ABD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004E3D RID: 20029 RVA: 0x000D58C5 File Offset: 0x000D3AC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004E3E RID: 20030 RVA: 0x000D58D0 File Offset: 0x000D3AD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.farmStageGachaInfoList_.WriteTo(ref output, GetFarmStageGachaInfoScRsp._repeated_farmStageGachaInfoList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004E3F RID: 20031 RVA: 0x000D5920 File Offset: 0x000D3B20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.farmStageGachaInfoList_.CalculateSize(GetFarmStageGachaInfoScRsp._repeated_farmStageGachaInfoList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004E40 RID: 20032 RVA: 0x000D5974 File Offset: 0x000D3B74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetFarmStageGachaInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.farmStageGachaInfoList_.Add(other.farmStageGachaInfoList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004E41 RID: 20033 RVA: 0x000D59C1 File Offset: 0x000D3BC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004E42 RID: 20034 RVA: 0x000D59CC File Offset: 0x000D3BCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.farmStageGachaInfoList_.AddEntriesFrom(ref input, GetFarmStageGachaInfoScRsp._repeated_farmStageGachaInfoList_codec);
				}
			}
		}

		// Token: 0x04001ECE RID: 7886
		private static readonly MessageParser<GetFarmStageGachaInfoScRsp> _parser = new MessageParser<GetFarmStageGachaInfoScRsp>(() => new GetFarmStageGachaInfoScRsp());

		// Token: 0x04001ECF RID: 7887
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001ED0 RID: 7888
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04001ED1 RID: 7889
		private uint retcode_;

		// Token: 0x04001ED2 RID: 7890
		public const int FarmStageGachaInfoListFieldNumber = 7;

		// Token: 0x04001ED3 RID: 7891
		private static readonly FieldCodec<FarmStageGachaInfo> _repeated_farmStageGachaInfoList_codec = FieldCodec.ForMessage<FarmStageGachaInfo>(58U, FarmStageGachaInfo.Parser);

		// Token: 0x04001ED4 RID: 7892
		private readonly RepeatedField<FarmStageGachaInfo> farmStageGachaInfoList_ = new RepeatedField<FarmStageGachaInfo>();
	}
}
